package com.nation.serviceImpl;

import com.nation.dao.VUserDao;
import com.nation.domain.TCityC;
import com.nation.domain.TProvinceC;
import com.nation.domain.VUsers;
import com.nation.service.VUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by dqd on 2017/11/10.
 */
@Service
public class VUserServiceImpl implements VUsersService {
    @Autowired
    private VUserDao VUserDao;
    @Override
    public VUsers findUserByAccount(String account) {
        return VUserDao.findUserByAccount(account);
    }

    @Override
    public Boolean insertUsers(VUsers users) {
        return VUserDao.insertUsers(users);
    }

    @Override
    public Boolean updateUsersByAccount(VUsers users) {
        return VUserDao.updateUsersByAccount(users);
    }

    @Override
    public List<TCityC> findAllCity() {
        return VUserDao.findAllCity();
    }

    @Override
    public List<TProvinceC> findAllProvince() {
        return VUserDao.findAllProvince();
    }
}
